 
-----------------------------
Generating Binomial N samples
p =  0.5 N =  5
Number of Samples =  2500000
  
  Generating Binomial Distribution samples.
  Date and time plus nanoseconds
Thu Jun 19 17:28:59 EDT 2014
053762331
  
[1] 0.5
[1] 5
[1] "Absolute difference of empirical moments from theoretical ones:"
[1] 0.0003552 0.0027504 0.0170568 0.0898464
[1] "Relative difference of empirical moments from theoretical ones:"
[1] 0.0001420800 0.0003667200 0.0006822720 0.0009982933
[1] "Absolute difference of empirical central moments from theoretical ones:"
[1] 3.979039e-20 9.742738e-04 1.755762e-03 2.149584e-04
[1] "Relative difference of empirical central moments from theoretical ones (except first):"
[1] 1.299032e-04 7.023047e-05 2.388427e-06
                         test   P.value KS.test
1                  Chi Square 0.5585214  Passed
2            Likelihood Ratio 0.5585214  Passed
3               Freeman-Tukey 0.5182773  Passed
4 Power Divergence (lambda=2) 0.5330816  Passed
 
-----------------------------
Taking first  1000000 samples
p =  0.5 N =  5
 
[1] 0.5
[1] 5
[1] "Absolute difference of empirical moments from theoretical ones:"
[1] 0.000307 0.004211 0.029551 0.166211
[1] "Relative difference of empirical moments from theoretical ones:"
[1] 0.0001228000 0.0005614667 0.0011820400 0.0018467889
[1] "Absolute difference of empirical central moments from theoretical ones:"
[1] 1.648175e-16 2.675906e-03 2.571035e-03 9.422134e-03

	One-sample Kolmogorov-Smirnov test

data:  bin.unif
D = 0.0018, p-value = 0.2599
alternative hypothesis: two-sided

